/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2012
 */

package com.asiainfo_linkage.model;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;


/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */

@Table(value = "REM_GROUP")
	public class AddGroup implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	
	//date formats
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	
	@Column	  // 表示该对象属性可以映射到数据库里作为一个字段
	@Id       // 表示该字段为一个自增长的Id
	private java.lang.Long GROUP_ID;
	
	@Column
	@Name    // 表示该字段可以用来标识此对象，或者是字符型主键，或者是唯一性约束
	private java.lang.String GROUP_NAME;
	
	@Column
	private java.lang.String REMARK;
	

	public AddGroup(){
	}

	public AddGroup(
		java.lang.Long GROUP_ID
	){
		this.GROUP_ID = GROUP_ID;
	}

	
	public void setGROUP_ID(java.lang.Long value) {
		this.GROUP_ID = value;
	}
	
	public java.lang.Long getGROUP_ID() {
		return this.GROUP_ID;
	}
	public void setGROUP_NAME(java.lang.String value) {
		this.GROUP_NAME = value;
	}
	
	public java.lang.String getGROUP_NAME() {
		return this.GROUP_NAME;
	}
	
	public void setREMRAK(java.lang.String value) {
		this.REMARK = value;
	}
	
	public java.lang.String getREMARK() {
		return this.REMARK;
	}
	 
	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("GROUP_ID",getGROUP_ID())
			.append("GROUP_NAME",getGROUP_NAME())
			.append("REMARK",getREMARK())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getGROUP_ID())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof AddGroup == false) return false;
		if(this == obj) return true;
		AddGroup other = (AddGroup)obj;
		return new EqualsBuilder()
			.append(getGROUP_ID(),other.getGROUP_ID())
			.isEquals();
	}
}

